# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=qt5-ukui-platformtheme
pkgver=1.0.8
pkgrel=8
pkgdesc="The UKUI platform theme for qt5 QPA"
arch=('loong64' 'x86_64')
license=('GPL')
url="https://github.com/ukui/qt5-ukui-platformtheme"
groups=('ukui')
depends=('dconf' 'gsettings-qt' 'kwayland5' 'kwindowsystem5' 'libqtxdg')
makedepends=('qt5-tools')
source=("https://github.com/ukui/qt5-ukui-platformtheme/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('e66bacfc3e00bd62e86f5c87ff9d204b851e7a56a17c64900c31ec612ce6b994f41b0107b826efa9d803799410b936ec7b2f0ea2ab77aa3d6b8878f30fb37591')

build() {
  cd qt5-ukui-platformtheme-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd qt5-ukui-platformtheme-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
